﻿using System;
using System.Collections.Generic;
using System.Net;
using System.Net.NetworkInformation;
using System.Runtime.InteropServices;
using System.Text;
using Coldairarrow.DotNettyRPC;
using Common;
using ZooKeeperManage.Helper;

namespace Server
{
    class Program
    {

        static void Main()
        {

            var ips = Network.GetIPv4AddressList();

            var temp = Network.Check(ips[0]);
            RPCServer rPcServer = new RPCServer(9999);
            rPcServer.RegisterService<IHello, Hello>();
            rPcServer.RegisterService<IHello2, Hello2>();
            rPcServer.Start();
            Console.ReadLine();
        }
    }
}
